package com.koron.css2.clientCenter.mapper;

import com.koron.css2.clientCenter.bean.UserCloseBean;
import com.koron.css2.clientCenter.bean.UserCloseDetailBean;
import com.koron.css2.clientCenter.bean.UserCloseListBean;
import com.koron.css2.clientCenter.queryBean.ReuseUserQueryBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 销户
 * @author 甄玉晴
 *
 */
public interface CloseUserMapper {
	/**
	 * 销户初始化列表
	 * @param bean
	 * @return
	 */
	public List<UserCloseListBean> userCloseList(ReuseUserQueryBean bean);
	/**
	 * 销户详情列表
	 * @param bean
	 * @return
	 */
	public List<UserCloseDetailBean> userCloseDetailList(UserCloseDetailBean bean);
	/**
	 * 销户单据增加
	 * @param bean
	 * @return
	 */
	public Integer userCloseAdd(UserCloseBean bean);

	/**
	 * 销户单据批量增加
	 * @param list
	 * @return
	 */
	public Integer userCloseBatchAdd(@Param("list") List<UserCloseDetailBean> list,@Param("userCloseId") String userCloseId);
	/**
	 * 销户批量修改详情表关联
	 * @param list
	 * @return
	 */
	public Integer userCloseBatchUpdate(@Param("list") List<UserCloseDetailBean> list,@Param("id") String userCloseId);
	/**
	 * 删除销户信息
	 * @param id
	 * @return
	 */
	public Integer userCloseDelete(String id);
	/**
	 * 删除销户详情信息
	 * @param id
	 * @return
	 */
	public Integer userCloseDetailDelete(@Param("userCloseId") String userCloseId);
	/**
	 * 修改销户信息
	 * @param bean
	 * @return
	 */
	public Integer userCloseUpdate(UserCloseBean bean);
	/**
	 * 根据Id查询销户信息
	 * @param id
	 * @return
	 */
	public UserCloseBean getUserCloseInfoById(String id);


}
